<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<style type="text/css">
		body{
			background-image:url(static/img/bg.png);
		}
	</style>
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a href="#" class="brand">Kaishengit PMS</a>
			</div>
		</div>		
	</div>
	<div class="container">
		<div class="row" style="margin-top:60px">
			<div class="span3">
				<div style="padding:15px">
					<ul class="nav nav-list">
						<li class="nav-header" style="font-size:14px">${sessionScope.userProject.project.name }</li>
						<li class="divider"></li>
						<li><a href="project.jspx"><i class="icon-home"></i>最新动态</a></li>
						<li><a href="goal.jspx"><i class="icon-flag"></i>目标</a></li>
						<li><a href="document.jspx"><i class="icon-folder-open"></i>资料库</a></li>
						<li class="active"><a href="files.jspx"><i class="icon-white icon-file"></i>文件共享</a></li>
						<li><a href="contact.jspx"><i class="icon-user"></i>联系人</a></li>
						<li><a href="idea.jspx"><i class="icon-fire"></i>想法</a></li>
						<li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
						<li><a href="set.jspx"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>					
			</div>			
			<div class="span9" style="margin-top:50px">			
				<ul class="breadcrumb">
					<li>
						<a><i class="icon-th"></i>文件列表</a>
					</li>
					<li style="float:right"><a href="files.jspx?m=add"><i class="icon-plus"></i>创建文件夹</a></li>
				</ul>
				<div style="display:none" id="ad">
					<form action="files.jspx?m=add">
						文件名称：<input type="text" >
						<button>添加</button>
					</form>
				</div>
				
				<table class="table table-striped">
					<thead>
						<tr>
							<th></th>
							<th>名称</th>
							<th>大小</th>
							<th>创建人</th>
							<th></th>
						</tr>
					</thead>
					<tbody>
						<c:if test="${empty filesList }">还没有任何文件分享，先创建文件夹吧！</c:if>
						<c:forEach items="${filesList }" var="files">
							<tr>
								<td><i class="icon-folder-close"></i></td>
								<td><a href="file.jspx?filesId=${files.id }">${files.name }</a></td>
								<td>${files.num}files of  ${files.size}</td>
								<td>${files.user.name}</td>
								<td><a href="files.jspx?m=del&&filesId=${files.id }" class="link-black" title="删除该文件夹"><i class="icon-trash"></i></a></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
</html>